{% extends 'WebQuant/base.html' %}
{% block title %}云策略{% endblock %}
{% block content %}
<div class="wrap">
    <div class="main">
        <div class="wrap_head">
            <div class="head_left">
                <ul>
                    <li class="on" id="stock"><a href="">股票</a></li>
                    <li id="futures"><a href="">期货</a></li>
                    <li id="store"><a href="">现货</a></li>
                </ul>
            </div>
            <div class="head_right">
                <input type="checkbox" name="category" value="模拟中的策略" />模拟中的策略
                <a href="javascript:void(0)">新建策略</a>
            </div>
        </div>

        <div class="target">
        </div>
    </div>
    <div class="page" style="margin-bottom:0;">
        <p></p>
    </div>
</div><!-- 内容 -->
<div class="mask"></div>
<div class="pannel">
    <a class="close"></a>
    <h2>新建策略</h2>
    <form onsubmit="on_strategy_new()">
        <span>策略名称</span>
        <input type="text" class="ti">
        <p><input type="checkbox" name="category" value="股票" style="margin-left:0" checked="checked"/>股票
        <input type="checkbox" name="category" value="期货" disabled="true"/>期货
        <input type="checkbox" name="category" value="现货" disabled="true"/>现货</p>
        <input type="submit" value="确定">
    </form>
</div>
<div class="pannel1">
    <p><span class="tip">您确定删除此条策略？</span></p>
    <input type="button" value="取消" class="no">
    <input type="button" value="确定" class="yes">
</div>
<script src="/static/WebQuant/js/jq.js"></script>
<script src="/static/WebQuant/js/mustache.min.js"></script>
<script src="/static/WebQuant/js/page.js"></script>
<script id="template" type="x-tmpl-mustache">
	[[#StrategyList]]
	<div class="content">
		<h3><a href="/strategy/edit/?strategyId=[[strategyId]]&versionId=[[versionId]]">[[strategyName]]</a></h3>
		<div class="con_left">
			<div class="profit">
				<p>收益</p>
				[[&earnings]]
			</div>
			<div class="alpha">
				<p>Alpha</p>
				<span>[[alpaha]]</span>
			</div>
			<div class="beta">
				<p>Beta</p>
				<span>[[beta]]</span>
			</div>
			<div class="sharp">
				<p>Sharp</p>
				<span>[[sharp]]</span>
			</div>
			<div class="volatility">
				<p>Volatility</p>
				<span>[[volatility]]</span>
			</div>
			<div class="max">
				<p>Max Drawdown</p>
				<span>[[MaxDrawdown]]</span>
			</div>
		</div>
		<div class="con_right">
			<p>创建时间：<span>[[createTime]]</span></p>
			<p>修改时间：<span>[[modifyTime]]</span></p>
			<p>回测历史：<span id="c_blue">[[backtestHistory]]</span></p>
			<p>模拟历史：<span>[[simulateHistory]]</span></p>
			<a class="btn" href="/strategy/edit/?strategyId=[[strategyId]]&versionId=[[versionId]]" >编辑策略</a>
			<a href="#" class="delete"></a>
			[[&backtestState]]
			<div class="session_strategyId" style="display:none">[[strategyId]]</div>
			<div class="session_strategyVersionId" style="display:none">[[versionId]]</div>
		</div>

	</div>
	[[/StrategyList]]
</script>
{% endblock %}
{% block bottom %}
{% include 'WebQuant/bottom.html' %}
<script src="/static/WebQuant/js/csrf.js"></script>
<script src="/static/WebQuant/js/index.js"></script>
<script src="/static/WebQuant/js/base.js"></script>
<script>
	var isLog = {{log}};
	if (isLog)
	{
		$(".l_case2").css("display","block");
		$(".l_case1").css("display","none");
	}
	else
	{
		$(".l_case2").css("display","none");
		$(".l_case1").css("display","block");
        showLogin();
	}
</script>
{% endblock %}